Motion.SetAxisNegativeLimitSwitch 方法
為軸設定一個負極限開關。
命名空間:IntervalZero.KINGSTAR.Local.Api
組合: IntervalZero.KINGSTAR.Local.Api (於 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0
語法
public KsError SetAxisNegativeLimitSwitch(
int Index,
bool AxisSwitch,
int ModuleIndex,
int BitOffset,
bool Invert,
bool Enable
)
Public Function SetAxisNegativeLimitSwitch(
Index As Integer,
AxisSwitch As Boolean,
ModuleIndex As Integer,
BitOffset As Integer,
Invert As Boolean,
Enable As Boolean
) As KsError
參數
Index
型別:int
軸索引。索引以 0 為起始;別名將影響此參數。
AxisSwitch
型別:bool
當感測器連接到軸輸入,設為 true;若連接到 I/O 模組,設為 false。
ModuleIndex
型別:int
識別何軸或 I/O 模組內含有感測器。別名將影響此參數。
BitOffset
型別:int
此偏移量(位元)為模組輸入變數中的感測器數位輸入。
Invert
型別:bool
反轉感測器值。
Enable
型別:bool
true:啟用負極線開關。false:停用負極線開關。
回傳值
方法的回傳代碼。
備註
用來選擇數位輸入,以作為負極線開關使用。
範例
N/A
參見